<?php

namespace Shared\Main;

use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 * @ORM\Table(name="impressions")
 */
class Impression 
{    
    /**
     * @ORM\Id
     * @ORM\GeneratedValue
     * @ORM\Column(type="integer")
     */
    protected $id;

    /**
     * @ORM\Column
     */
    protected $ip;
    
    /**
     * @ORM\Column
     */
    protected $dateTime;
    
    
    /**
     * @ORM\Column
     */
    protected $userAgent;
    
    /**
     * @ORM\Column
     */
    protected $route;
    
    /**
     * @ORM\Column
     */
    protected $url;
    
    public function getId() {
        return $this->id;
    }

    public function getIp() {
        return $this->ip;
    }

    public function getDateTime() {
        return $this->dateTime;
    }

    public function getUserAgent() {
        return $this->userAgent;
    }

    public function getRoute() {
        return $this->route;
    }

    public function setId($id) {
        $this->id = $id;
    }

    public function setIp($ip) {
        $this->ip = $ip;
    }

    public function setDateTime($dateTime) {
        $this->dateTime = $dateTime;
    }

    public function setUserAgent($userAgent) {
        $this->userAgent = $userAgent;
    }

    public function setRoute($route) {
        $this->route = $route;
    }
    
    public function getUrl() {
        return $this->url;
    }

    public function setUrl($url) {
        $this->url = $url;
    }
}
